import {request} from "../http";

export interface HanfuQuery {
    hanFuTypeName?: string | null,
    pageNum: number,
    hanFuTypeId: number,
    pageSize?: number,
    hanFuName?: string | null,
    hanFuStatus?: number,
}

export function getHanfu(query:HanfuQuery) {
    return request({
        url: `/hanfu/wx`,
        method: 'POST',
        data: query,
        token: false
    })
}

export function getHanfuDe(id:number) {
    return request({
        url: `/hanfu/wx/${id}`,
        method: 'GET',
        token: false
    })
}